package com.yyq.eduservice.controller;

/**
 * @author yyq
 * @create 2021-04-08 16:02
 */

import com.yyq.result.R;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/eduservice/user")
public class EduLoginController {

    @PostMapping("login")
    public  R login(){

        return R.ok().data("token","admin");
    }

    @GetMapping("info")
    public R info(){
        return  R.ok().data("roles","admin").data("name","admin").data("avatar","https://www.jianfast.com/static/home/images/siteimg/i4.png");
    }
}
